<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>

  <!-- 引入vant组件 -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.10.9/lib/index.css" />
  <script src="https://cdn.jsdelivr.net/npm/vant@2.10.9/lib/vant.min.js"></script>
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue-mobile.js"></script>
  <style>
    body {
      background-color: #f7f8fa;
    }
  </style>
</head>

<body>
  <div id="app">
    <avue-swipe :option="option" @click="handleClick"></avue-swipe>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        option: {
          // autoplay:5000,
          // loop:false,
          list: [{
            title: '这是标题2',
            url: '/vant/mobile.htm',
            value: 'https://img.yzcdn.cn/vant/apple-1.jpg',
          }, {
            title: '这是标题3',
            url: '/vant/mobile.htm',
            value: 'https://img.yzcdn.cn/vant/apple-2.jpg',
          }]
        }
      }
    },
    methods: {
      handleClick(item) {
        console.log(item)
      }
    }
  })
</script>

</html>